package com.zhongke.cotrun.model.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
@ApiModel(value = "积分规则")
public class IntegralRecord {
    //积分规则
    @ApiModelProperty(value = "积分规则id", example = "12")
    private Integer integralRecordId;   ////积分规则id
    @ApiModelProperty(value = "积分类行id", example = "12")
    private Integer interalNameId;     //积分类行id
    @ApiModelProperty(value = "积分类型的名字", example = "注册")
    private String integralName;//积分类型的名字
    @ApiModelProperty(value = "积分状态0不启用1启用", example = "1")
    private Integer state;       //积分状态0不启用1启用
    @ApiModelProperty(value = "备注", example = "备注")
    private String remark;       //备注
    @ApiModelProperty(value = "操作人id", example = "123")
    private Long linkUserId;        //操作人id
    @ApiModelProperty(value = "创建时间", example = "2012-12-12")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date createTime;        //创建时间
    @ApiModelProperty(value = "跟新时间", example = "2012-12-12")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date updateTime;          //跟新时间
    @ApiModelProperty(value = "是否永久0，是 1否", example = "0")
    private Integer perpetual;        //是否永久0否1是
    @ApiModelProperty(value = "规则生效时间", example = "2012-12-12")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date startTime;       //开始时间
    @ApiModelProperty(value = "规则结束时间", example = "2012-12-12")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date finishTime;        //结束时间
//    @ApiModelProperty(value = "积分值", example = "2012-12-12")
//    private BigDecimal integralValue;       //积分值
//H
//    @ApiModelProperty(value = "会员等级", example = "1")
//    private Integer grade;//会员等级
//    @ApiModelProperty(value = "账户类型", example = "1")
//    private Integer userType;//用户类型

    private List<MembershipValues> membershipValues;//积分所属值

    private Integral integral;//所属积分规则
    private Integer rankOne;//所属一级
    private Integer rankTwo;//所属二级

    private String keyWord;//搜素关键字

}
